RetryConfiguration

data class RetryConfiguration(    val maxRetries: Int,     val interval: Long,     val multiplier: Float = 1.0f)

Specify how retries should be performed. See Retry.

Constructors

Link copied to clipboard
fun RetryConfiguration(    maxRetries: Int,     interval: Long,     multiplier: Float = 1.0f)

Types

Link copied to clipboard
object Companion

Default configurations.

Functions

Link copied to clipboard
fun retryIntervals(): Sequence<Long>

Generate a finite sequence of intervals from the configuration.

Properties

Link copied to clipboard
val interval: Long

Time to wait between attempts.

Link copied to clipboard
val maxRetries: Int

Maximum attempts before raising an exception.

Link copied to clipboard
val multiplier: Float = 1.0f

By how much to increase the interval between each attempts (exponential backoff).

Sources

Link copied to clipboard